<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('ad_plan', function (Blueprint $table) {
            $table->tinyInteger('postback_type')->comment('充值回传类型 0全部回传 1首充回传 2订单回传 3用户回传')->unsigned()->default(0);
            $table->string('postback_config', 512)->comment('回传配置')->default('');

            $table->index('postback_type');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
};
